package com.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.pojo.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order>{

    // 根据用户id查询用户订单 以及 订单明细
    List<Order> findOrderAndOrderDetailByUserId(Integer userId);
}
